package Boundry;

import Boundry.GenericTools.IPanelOperation;
import Boundry.GenericTools.RequestInfoAndInputPanel;
import javax.swing.JPanel;
import javax.swing.JLabel;
import java.awt.Font;
import javax.swing.JComboBox;

public class SetTimeForEvaluationPanel  extends RequestInfoAndInputPanel implements IPanelOperation{
	private JComboBox<Integer> comboBox;
	private int MINDAYSALLOWED = 3;
	private int MAXDAYSALLOWED = 14;
	public SetTimeForEvaluationPanel() 
	{
		
		SetTimeForEvaluationPanelInit();
		enterDataToComboBox();
		
	}

	
	public  void enterDataToComboBox() {
		for (int i=MINDAYSALLOWED ; i< MAXDAYSALLOWED ; i++ )
			comboBox.addItem(new Integer(i));
		
	}


	public JComboBox getComboBox() {
		return comboBox;
	}


	public void setComboBox(JComboBox comboBox) {
		this.comboBox = comboBox;
	}


	public void SetTimeForEvaluationPanelInit()
	{
		comboBox = new JComboBox();
		JPanel pnlEnterTime = new JPanel();
		JLabel lblSelectNumberOf = new JLabel("Select number of days for Evaluation");

		pnlEnterTime.setBounds(333, 221, 252, 97);
		mainPanel.add(pnlEnterTime);
		pnlEnterTime.setLayout(null);
		
		lblSelectNumberOf.setFont(new Font("Tahoma", Font.PLAIN, 11));
		lblSelectNumberOf.setBounds(28, 26, 244, 14);
		pnlEnterTime.add(lblSelectNumberOf);
		
		comboBox.setBounds(71, 51, 103, 20);
		pnlEnterTime.add(comboBox);
		
	}
	@Override
	public String apHelpButton() {
		 return "The Evaluater here can set time for Evaluation stage";
	}

	@Override
	public String setTitle() {
 		return "Set Time for Evaluation ";
	}
}
